package cn.edu.cdtu.healthserver.domain;

import java.io.Serializable;

public class HealthNewsJson implements Serializable
{
	/** 
	 * @Fields serialVersionUID : TODO
	 */ 
	private static final long serialVersionUID = 1L;
	private int status;
	private String paragraph1;
	private String paragraph2;
	private String paragraph3;
	private String paragraph4;
	private String paragraph5;
	
	public HealthNewsJson() 
	{
		super();
	}

	public HealthNewsJson(int status, String paragraph1, String paragraph2,String paragraph3, String paragraph4, String paragraph5) 
	{
		super();
		this.status = status;
		this.paragraph1 = paragraph1;
		this.paragraph2 = paragraph2;
		this.paragraph3 = paragraph3;
		this.paragraph4 = paragraph4;
		this.paragraph5 = paragraph5;
	}

	public int getStatus() 
	{
		return status;
	}

	public void setStatus(int status) 
	{
		this.status = status;
	}

	public String getParagraph1() 
	{
		return paragraph1;
	}

	public void setParagraph1(String paragraph1) 
	{
		this.paragraph1 = paragraph1;
	}

	public String getParagraph2() 
	{
		return paragraph2;
	}

	public void setParagraph2(String paragraph2) 
	{
		this.paragraph2 = paragraph2;
	}

	public String getParagraph3() 
	{
		return paragraph3;
	}

	public void setParagraph3(String paragraph3) 
	{
		this.paragraph3 = paragraph3;
	}

	public String getParagraph4() 
	{
		return paragraph4;
	}

	public void setParagraph4(String paragraph4) 
	{
		this.paragraph4 = paragraph4;
	}

	public String getParagraph5() 
	{
		return paragraph5;
	}

	public void setParagraph5(String paragraph5) 
	{
		this.paragraph5 = paragraph5;
	}

	/* (non-Javadoc)
	 * <p>Title: hashCode</p> 
	 * <p>Description: </p> 
	 * @return 
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((paragraph1 == null) ? 0 : paragraph1.hashCode());
		result = prime * result
				+ ((paragraph2 == null) ? 0 : paragraph2.hashCode());
		result = prime * result
				+ ((paragraph3 == null) ? 0 : paragraph3.hashCode());
		result = prime * result
				+ ((paragraph4 == null) ? 0 : paragraph4.hashCode());
		result = prime * result
				+ ((paragraph5 == null) ? 0 : paragraph5.hashCode());
		result = prime * result + status;
		return result;
	}

	/* (non-Javadoc)
	 * <p>Title: equals</p> 
	 * <p>Description: </p> 
	 * @param obj
	 * @return 
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		HealthNewsJson other = (HealthNewsJson) obj;
		if (paragraph1 == null) {
			if (other.paragraph1 != null)
				return false;
		} else if (!paragraph1.equals(other.paragraph1))
			return false;
		if (paragraph2 == null) {
			if (other.paragraph2 != null)
				return false;
		} else if (!paragraph2.equals(other.paragraph2))
			return false;
		if (paragraph3 == null) {
			if (other.paragraph3 != null)
				return false;
		} else if (!paragraph3.equals(other.paragraph3))
			return false;
		if (paragraph4 == null) {
			if (other.paragraph4 != null)
				return false;
		} else if (!paragraph4.equals(other.paragraph4))
			return false;
		if (paragraph5 == null) {
			if (other.paragraph5 != null)
				return false;
		} else if (!paragraph5.equals(other.paragraph5))
			return false;
		if (status != other.status)
			return false;
		return true;
	}

	/* (non-Javadoc)
	 * <p>Title: toString</p> 
	 * <p>Description: </p> 
	 * @return 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "HealthNewsJson [status=" + status + ", paragraph1="
				+ paragraph1 + ", paragraph2=" + paragraph2 + ", paragraph3="
				+ paragraph3 + ", paragraph4=" + paragraph4 + ", paragraph5="
				+ paragraph5 + "]";
	}

	
	
}
